<?php
	header('Content-type:text/html;charset=utf-8');
	class Account{
		public $name;
		public $pwd;
		public function __toString(){
			return "用户名:{$this->name},密码:{$this->pwd}";
		}
	}
	$account=new Account();
	$account->name='王五';
	$account->pwd="1234";
	echo $account;
